package LuoGu;

import java.util.Scanner;

public class P1618Other {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int x=sc.nextInt(),y=sc.nextInt(),z=sc.nextInt();
        boolean flag=true;
        for (int i = 123; i <=987 ; i++) {
            if(i%z==0){
                String a=i+"";
                String b=(i/z)*x+"";
                String c=(i/z)*y+"";
                if(pd(a,b,c)){
                    flag=false;
                    System.out.println(b+" "+c+" "+a);
                }
            }
        }
        if(flag){
            System.out.println("No!!!");
        }
    }
    private static boolean pd(String a1, String b1, String c1) {
        String s=a1+b1+c1;

        for(char i='1';i<='9';i++){
            if(s.contains(String.valueOf(i))==false){
                return false;
            }
        }
        return true;
    }
}
